home *** CD-ROM | disk | FTP | other *** search
- CURSOR.TPU
- Cursor Control Turbo Pascal Unit
- by David C. Swaim II
-
-
- There are times, like when you are setting up a highlight bar
- menu, that you do not want to have a flashing cursor on the screen.
- Turbo Pascal has no built in procedure to turn off and on the cursor so
- without some external procedure you cannot cut off the cursor. That is
- what these procedures are designed to do.
-
- The CURSOR.TPU unit is a very small and simple Turbo Pascal unit
- which has only two procedures which have two very specific functions.
- The CursorOn procedure will turn the blinking cursor on and the
- CursorOff procedure will turn off the cursor so it is not visible. To
- turn off the cursor in a Turbo Pascal program simply put:
-
- CursorOff;
-
- in your program at the appropriate place. To turn the cursor back on
- put:
-
- CursorOn;
-
- in your program. The CursorOn procedure gives a large block cursor
- instead of the underline cursor that is normal for DOS. I have found
- that many people have trouble finding the cursor on a busy input screen
- on monochrome monitors or on laptop displays. Therefore all my
- programs use a block cursor.
-
- Note: The cursor procedures in the CURSOR.TPU are also included in the
- INPUT.TPU unit so if your program uses INPUT you already have access to
- the cursor procedures without listing CURSOR in your uses clause.
-